package com.un.ebs.production.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.un.ebs.production.domain.*;
import com.un.ebs.production.dto.ProductionSeqDto;
import com.un.ebs.production.dto.ProductionSeqItemDto;

/**
 * (ProductionSeq)表服务接口
 *
 * @author liubo
 * @since 2020-07-06 16:27:16
 */
public interface ProductionSeqService extends IService<ProductionSeq> {

    String add(ProductionSeqDto req);

    void update(ProductionSeqDto req);

    void addSeq(String name);

    void updateSeq(String id, String name);

    void addSeqItem(ProductionSeqItemDto req);

    void updateSeqItem(ProductionSeqItemDto req);

    void copyTo(String seqId, String newName);

    void delete(String id);

    void deleteItem(String itemId);

    ProductionSeqExt queryById(String id);

    ProductionSeqItemView queryItemById(String id);

    IPage<ProductionSeqItemView> queryItemViewBySeq(String seqId, int pageSize, int pageIndex);

    IPage<ProductionSeqItem> queryItem(String id, int pageSize, int pageIndex);

    IPage<ProductionSeqItemExt> queryItemView(String seqId, int pageSize, int pageIndex);

    IPage<ProductionSeqExt> query(String searchText, int pageSize, int pageIndex);

}